package controlers;

import java.util.HashMap;

import models.Banda;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class BandPageControler extends ActionSupport 
{
	String nome, componentes[], history;
	@SuppressWarnings("unchecked")
	@Override
	public String execute()
	{
		Banda temp = ((HashMap<String, Banda>)ActionContext.getContext().getApplication().get("Bandas")).get(nome);
		componentes = temp.getComponentes();
		history = temp.getHistoria();
		return "sucess";
	}
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	public String[] getComponentes() {
		return componentes;
	}
	public void setComponentes(String[] componentes) {
		this.componentes = componentes;
	}
	public String getHistory() {
		return history;
	}
	public void setHistory(String history) {
		this.history = history;
	}

}
